package bosc.cn.converter.loan;

import bosc.cn.dto.loan.LoanApprovalReqDTO;
import bosc.cn.service.loan.bo.LoanApprovalReqBO;

public class LoanApprovalReqConverter {

    public static LoanApprovalReqBO toBO(LoanApprovalReqDTO dto) {
        if (dto == null) {
            return null;
        }
        LoanApprovalReqBO bo = new LoanApprovalReqBO();
        bo.setTfrInWltId(dto.getTfrInWltId());
        bo.setTfrInWltNm(dto.getTfrInWltNm());
        bo.setOprIdentTp(dto.getOprIdentTp());
        bo.setOprIdentNo(dto.getOprIdentNo());
        bo.setOprNm(dto.getOprNm());
        bo.setOprTelNo(dto.getOprTelNo());
        bo.setTxnSmy(dto.getTxnSmy());
        bo.setTxnAmt(dto.getTxnAmt());
        bo.setApplyNo(dto.getApplyNo());
        bo.setApplyUserId(dto.getApplyUserId());
        bo.setAuthList(dto.getAuthList());

        bo.setAuthInfo(dto.getAuthInfo());
        bo.setAuthMsg(dto.getAuthMsg());
        return bo;
    }
}
